<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:v-model="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
    <counter>{{title}}</counter>
</div>
<script type="text/javascript">

    const counter={
        template:"<h2>Hello World {{title}}</h2>",
        data(){
                return {title:"introduce"}
        },
        props:["title"]
    }

    Vue.component("counter",counter)

    var app = new Vue({
        el: "#app",
        data: {
            msg:"组件通讯内容msg"
        },
    });
</script>
</body>
</html>